import { designEditKey } from "@/hooks/lowcode/keys";
import type { TypeDesignProvide } from "@/types/TypeDesign";
import { inject } from "vue";

export function useAttrWidget() {
  const { designWidgetList, designSelectedWidget, getSelectWidgetAttrConfig } = inject(
    designEditKey
  ) as TypeDesignProvide;

  return {
    getSelectWidgetAttrConfig,
  };
}
